import { useUserInfo } from '../store/user'
export const vPermiss = {
  mounted (el, binding) {
    const user = useUserInfo()
    const { permissions } = user.userInfo
    if (!permissions.includes(binding.value)) el.parentNode.removeChild(el)
  }
}
